package pl.prv.polanie.client.widgets.doubleclick;

import java.util.ArrayList;
import java.util.Iterator;

import com.google.gwt.user.client.ui.Widget;


public class DoubleClickListenerCollection extends ArrayList {

	private static final long serialVersionUID = 1L;

	public void fireOnDoubleClick(Widget sender, int x, int y) {
		for (Iterator it = iterator(); it.hasNext();) {
			DoubleClickListener listener = (DoubleClickListener) it.next();
			listener.onDoubleClick(sender, x, y);
		}
	}
	
}
